var teamId;
var teamName;
$(document).ready(function(){ 
	$('#header').animate({'top':'0px'},400);
	teamId = args.teamId; //取得id的值
	teamName = args.teamName;
		
	var paraData = {teamId:teamId};
	$.getJSON(path+"/soccer/teamAction!selectTeamById.action",paraData, function(data){
		$("#teamDesc").text(data.smTeam.teamDesc);
		$("#teamName").text(data.smTeam.teamName);
	});
});
function goBack(){
	window.location.href=path+"/soccer/team.jsp";
}
function teamGame(){
	var timestamp = (new Date()).valueOf();
	window.location.href=path+"/soccer/teamGame.jsp?teamId="+teamId+"&teamName="+teamName+"&timestamp="+timestamp;
}
function gameData(){
	var timestamp = (new Date()).valueOf();
	window.location.href=path+"/soccer/teamScoreList.jsp?teamId="+teamId+"&timestamp="+timestamp;
	//window.location.href=path+"/soccer/teamGameDataSetCond.jsp?teamId="+teamId+"&timestamp="+timestamp;
}